// 自动生成模板OmsPaymentInfo
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// omsPaymentInfo表 结构体  OmsPaymentInfo
type OmsPaymentInfo struct {
	Id              *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                  //id
	OrderSn         *string    `json:"orderSn" form:"orderSn" gorm:"comment:订单号（对外业务号）;column:order_sn;"`                             //订单号（对外业务号）
	OrderId         *int       `json:"orderId" form:"orderId" gorm:"comment:订单id;column:order_id;size:19;"`                           //订单id
	AlipayTradeNo   *string    `json:"alipayTradeNo" form:"alipayTradeNo" gorm:"comment:支付宝交易流水号;column:alipay_trade_no;size:50;"`    //支付宝交易流水号
	TotalAmount     *float64   `json:"totalAmount" form:"totalAmount" gorm:"comment:支付总金额;column:total_amount;size:18;"`              //支付总金额
	Subject         *string    `json:"subject" form:"subject" gorm:"comment:交易内容;column:subject;size:200;"`                           //交易内容
	PaymentStatus   *string    `json:"paymentStatus" form:"paymentStatus" gorm:"comment:支付状态;column:payment_status;size:20;"`         //支付状态
	CreateTime      *time.Time `json:"createTime" form:"createTime" gorm:"comment:创建时间;column:create_time;"`                          //创建时间
	ConfirmTime     *time.Time `json:"confirmTime" form:"confirmTime" gorm:"comment:确认时间;column:confirm_time;"`                       //确认时间
	CallbackContent *string    `json:"callbackContent" form:"callbackContent" gorm:"comment:回调内容;column:callback_content;size:4000;"` //回调内容
	CallbackTime    *time.Time `json:"callbackTime" form:"callbackTime" gorm:"comment:回调时间;column:callback_time;"`                    //回调时间
}

// TableName omsPaymentInfo表 OmsPaymentInfo自定义表名 oms_payment_info
func (OmsPaymentInfo) TableName() string {
	return "oms_payment_info"
}

type OmsPaymentInfoRepo interface {
}

type OmsPaymentInfoUsecase struct {
	repo OmsPaymentInfoRepo
	log  *log.Helper
}

func NewOmsPaymentInfoUsecase(repo GreeterRepo, logger log.Logger) *OmsPaymentInfoUsecase {
	return &OmsPaymentInfoUsecase{repo: repo, log: log.NewHelper(logger)}
}
